package com.water.devtool.bean;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class ClassDefine {
	private String level;
	private String packageName;
	private String className;
	private String modelName;
	private String seqName;
	private List<FieldDefine> fields = new ArrayList<FieldDefine>();
	private Set<String> importSet = new HashSet<String>();

	public String getFullName() {
		return packageName + "." + className;
	}

	public String getPackageName() {
		return packageName;
	}

	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getPackagePath() {
		String path = packageName.replace(".", "/") + "/";
		return path;
	}

	public List<FieldDefine> getFields() {
		return fields;
	}

	public void addField(FieldDefine f) {
		fields.add(f);
	}

	public void setFields(List<FieldDefine> fields) {
		this.fields = fields;
	}

	public void addImport(String importStr) {
		importSet.add(importStr);
	}

	public Set<String> getImportSet() {
		return importSet;
	}

	public void setImportSet(Set<String> importSet) {
		this.importSet = importSet;
	}

	public String getModelName() {
		return modelName;
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

	public String getSeqName() {
		return seqName;
	}

	public void setSeqName(String seqName) {
		this.seqName = seqName;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}
}
